class CreateChatmsgs < ActiveRecord::Migration
  def self.up
    create_table :chatmsgs do |t|
      t.column :owner_jid, :string, :limit => 90, :default => "", :null => false
      t.column :jid,       :string, :limit => 90, :default => "", :null => false
      t.column :msg,       :text
      t.column :created_on, :datetime
    end
  end

  def self.down
    drop_table :chatmsgs
  end
end
